package com.boost.socialNetwork.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("user")
public interface UserService extends RemoteService{
	String authenticate(String userName, String password) throws IllegalArgumentException;
	List<String> retrieveIdeas(String key) throws IllegalArgumentException;
	String register(String userName, String password, String firstName, String lastName, String country, String email)throws IllegalArgumentException;
	String createIdea(String userKey, String title, String content) throws IllegalArgumentException;
	String deleteIdea(String ideaKey) throws IllegalArgumentException;
	String commentOnIdea(String ideaKey, String userKey, String comment) throws IllegalArgumentException;
	List<String> retrieveOtherIdeas(String key) throws IllegalArgumentException;
	List<String> retrieveComments(String ideaKey) throws IllegalArgumentException;
	String getConnected();
	String getCurrentPage();
	String putCurrentPage(String page);
	String getUserName();
	String logout();
}
